﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="content/js/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#btnGetMd5").click(function () {
                $.ajax({
                    // 以下二个URL地址都是有效的。
                    //url: "/AjaxDemo/GetMd5.cspx",
                    url: "/AjaxDemo/GetMd5.cspx",
                    data: { input: $("#txtInput").val() },
                    success: function (responseText) {

                        $("#spanReslt").text(responseText);
                    }
                });
            });

        })
        
    </script>
</head>
<body>
    <input id="txtInput" />
    <button id="btnGetMd5">
        获取Md5</button>
    <span id="spanReslt"></span>
</body>
</html>
